package action;

import service.Greeting;

import com.opensymphony.xwork2.ActionSupport;

public class GreetingAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String msg;
	private String name;
	private Greeting service;

	public String execute() {
		msg = service.sayHello(name);
		return SUCCESS;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getMsg() {
		return msg;
	}

	public Greeting getService() {
		return service;
	}

	public void setService(Greeting service) {
		this.service = service;
	}

}
